import java.util.*;
public class MobileTextString  {
	static void generateStringFromNumbers(int number)
	{
		String resultString = new String();
		int tempNumber = number;
		int i = 0;
		ArrayList<Integer> numberArrayList = new ArrayList<Integer>();
		while(tempNumber!=0)
		{
			int digit = tempNumber%10;
			numberArrayList.add(i++,digit);
			tempNumber=tempNumber/10;
		}
		int size = numberArrayList.size();
		System.out.println(size);
		Integer numberArray[] = (Integer[])numberArrayList.toArray();
		int count = 0;
		for(int i = 0; i < n-1; i++)
		{
			count = 1;
			while(numberArray[i]==numberArray[i+1])
				count++;
			if(count==1)
			{}
			else if(count>1 && numberArray[i]!=7 && numberArray[i]!=9)
			{
				switch (count) {
					case 2: 
						{
							resultString.append((char)numberArray[i]);
							resultString.append((char)numberArray[i]);
						}
					case 2:
					case 3:

					
				}
			}
		}
		

	}

	public static void main(String[] args) {
		generateStringFromNumbers(12345);
	}
	
}